const Mock=require('mockjs')

const data=Mock.mock({
    'list|30':[{
        'img':'@image(100x100,@color)',
        'id':'@id',
        'title':"@ctitle",
    }]
})

const fs=require('fs')
let dis=require('../../list/detail')


fs.writeFileSync('../mock/data.json',JSON.stringify(data.list))
// 4、正确编译src目录 10:00
fs.mkdirSync('./../../every/src');
// 5、编译输出到build目录里面 10:00
fs.mkdirSync('../../every/build')
  // 2、正确设置tsconfig.json 10:15
fs.writeFileSync('../build/tsconfig.json',JSON.stringify(dis))
